package com.example.springretrydemo.test;

import org.springframework.stereotype.Service;

@Service
public class UserFacadeImpl implements UserFacade{

    @Override
    public void add() throws Exception {
        System.out.println("添加用户。。。");
        throw new RuntimeException();
    }

    @Override
    @Retryable(maxAttemps = 3)
    public void query() {
        System.out.println("查询用户。。。");
        throw new RuntimeException();
    }

}
